// JavaScript Document
var req;
function doupdate(moduleid,statusid,issearch,isshortcut){
	debugger
	var url = "admin/system/modules/update?"+"moduleid="+moduleid+"&statusid="+statusid+"&isSearch="+issearch+"&isShortcut="+isshortcut;
	if(window.XMLHttpRequest) {
			req = new XMLHttpRequest();
	} 
	req.open("GET", url, true);
	req.onreadystatechange = function()
	{
		if(req.readyState == 4) {
			if(req.status == 200) {
				var m = req.responseText;
				alert(m);
			}
		}
		
	};
	req.send(null);		
}
function doparupdate(pid,pvalue,type){
	debugger
	var url = "admin/system/parameter/update?"+"pid="+pid+"&pvalue="+pvalue+"&type="+type;
	var temp = encodeURI(url)
	if(window.XMLHttpRequest) {
			req = new XMLHttpRequest();
	} 
	req.open("get", temp, true);
	req.onreadystatechange = function()
	{
		if(req.readyState == 4) {
			if(req.status == 200) {
				var m = req.responseText;
				alert(m);
			}
		}
		
	};
	req.send(null);		
}


function doimport(dataid,fieldcode,remark){
	debugger
	var url = "admin/system/datatransfer/doimport?"+"dataid="+dataid+"&fieldcode="+fieldcode+"&remark="+remark;
	var temp = encodeURI(url)
	if(window.XMLHttpRequest) {
			req = new XMLHttpRequest();
	} 
	req.open("get", temp, true);
	req.onreadystatechange = function()
	{
		if(req.readyState == 4) {
			if(req.status == 200) {
				var m = req.responseText;
				alert(m);
			}
		}
		
	};
	req.send(null);		
}
function doimport1(dataid,fieldid,remark){
	debugger
	var fieldcode = document.getElementById("field"+fieldid);
	var fieldcodevalue = fieldcode.value
	doimport(dataid,fieldcodevalue,remark);
}
	
